package com.canaan.common.encrypt;

import cn.hutool.json.JSONUtil;
import lombok.Getter;
import lombok.Setter;

/**
 * 第三方回调结果
 *
 * @author du.tang
 * @Version 1.0.0
 */
@Getter
@Setter
public class ApiResult<T> {
    private Integer code;
    private T content;
    private String msg;
    private String busiCode;
    private String status;
    private String uid;
    private String version;
    private String handler;

    {
        this.handler = "CLIENT";
        this.version = "100";
        this.busiCode = "BASE000";
        this.status = "SUCCESS";
        this.code = 1;
    }

    @Override
    public String toString() {
        return JSONUtil.toJsonStr(this);
    }

}
